Class FileManagerImpl

All Implemented Interfaces:
IPCObject, FileManager, Process

public class FileManagerImpl extends ProcessImpl implements FileManager
Information provided by the PKI file:

    \class FileManager
    
    \brief FileManager holds and manipulates the file manager process on routers and switches.
    
    \example network().getDevice("Router0").getProcess("FileManager")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getFileSystem

      public FileSystem getFileSystem(String name)
      Information provided by the PKI file:
      
          \brief Returns the file system with the specified name.
          
          \param name,        the name of the file system.
          SimFile systems: flash:, nvram:
          
          \return FileSystem, the FileSystem object with the specified name.
          
              
      Specified by:
      getFileSystem in interface FileManager
      Parameters:
      name - Takes in a parameter of name
      Returns:
      FileSystem Returns a FileSystem
    • getFile

      public SimFile getFile(String absPath, boolean bCheckPermission)
      Information provided by the PKI file:
      
          \brief Returns the SimFile given the path and check permission.
          
          \param absPath,     the absolute path to SimFile.
          \param bCheckPermission, true if check permission of file, false otherwise.
          
          \return SimFile, the SimFile of given path.
          
              
      Specified by:
      getFile in interface FileManager
      Parameters:
      absPath - Takes in a parameter of absPath
      bCheckPermission - Takes in a parameter of bCheckPermission
      Returns:
      SimFile Returns a SimFile
    • getDirectory

      public Directory getDirectory(String absPath, boolean bCheckPermission)
      Information provided by the PKI file:
      
          \brief Returns the Directory given the path and check permission.
          
          \param absPath,     the absolute path to directory.
          \param bCheckPermission, true if check permission of directory, false otherwise.
          
          \return Directory, the directory of given path.
          
              
      Specified by:
      getDirectory in interface FileManager
      Parameters:
      absPath - Takes in a parameter of absPath
      bCheckPermission - Takes in a parameter of bCheckPermission
      Returns:
      Directory Returns a Directory